<?php
include 'mysql.php';

?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>管理中心</title>
    <link href="./css/index.css" rel="stylesheet">
    <script src="js/jquery.js"></script>
    <script type="text/javascript">

        $(function(){
            $('#B_menubar').find('a').click(function(){

                var type = $(this).attr('type');
                if(type=='2')
                {
                    $('#iframe_default').attr('src','focus.php');
                }
                if(type=='1')
                {
                    $('#iframe_default').attr('src','activity.php');
                }
            })


        })
    </script>
 </head>

<body>
<div class="wrap">
    <table width="100%" height="100%" style="table-layout:fixed;">
        <tbody>
        <tr class="head">
            <th style="text-align: center;color: #ffffff;">
                管理后台
             </th>
            <td>
                <div class="nav">
                    <ul id="J_B_main_block" style="padding-left:16px">

                    </ul>
                </div>
                <div class="login_info">


                </div>
            </td>
        </tr>

        <tr class="content">
            <th style="overflow:hidden;">
              <div id="B_menunav">
                 <div class="menubar">
                    <dl id="B_menubar" data-id="1">
                        <dt><a href="/" target="_blank">网站首页</a></dt>
                        <dt><a href="javascript:;" type="1">活动编辑</a></dt>
                        <dt><a href="javascript:;" type="2">活动照片编辑</a></dt>
                    </dl>
                    </dl>
                 </div>
            </th>
            <td id="B_frame">

                <iframe id="iframe_default" name="iframe_default" src="activity.php" style="height: 100%; width: 100%; display: inline;"   frameborder="0" scrolling="auto">
                </iframe>
            </td>
        </tr>
        </tbody>
    </table>
</div>
<script type="text/javascript">
//iframe 加载事件
var iframe_default = document.getElementById('iframe_default');
$(iframe_default.contentWindow.document).ready(function() {
    $('#loading').hide();
    $(iframe_default).show();
});
</script>
</body>

</html>
<?php $mysqli->close(); ?>